import ProxyInterface from '../proxy-interface';
import {BoxUserPageModel, UserPageModel} from '@pkpm/pkpm-types';

class UserPageProxy implements ProxyInterface<UserPageModel> {
    private userPage = new UserPageModel();

    constructor(responseData) {
        let data = responseData;
        Object.assign<UserPageModel, any>(this.userPage, data);
    }

    getModel(): UserPageModel {
        return this.userPage;
    }
}

class BoxUserPageProxy implements ProxyInterface<BoxUserPageModel> {
    private userPage = new BoxUserPageModel();

    constructor(responseData) {
        let data = responseData;
        Object.assign<BoxUserPageModel, any>(this.userPage, data);
    }

    getModel(): BoxUserPageModel {
        return this.userPage;
    }
}

export {UserPageProxy, BoxUserPageProxy};
